<script type="text/html" template
        lay-url="{{ window.globalConfig.url_config + '/0?code=footer_html' }}"
        lay-done="layui.data.done(d);">
    <title>片段详情</title>

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <a lay-href="home/page/list"
                           class="layui-btn layui-btn-primary layui-btn-sm">返回上级</a>
                        {{ d.data.name }}
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-form" lay-filter="LAY-home-footer-listform" id="LAY-home-footer-listform"
                             style="padding: 20px 30px 0 0;">
                            <div class="layui-form-item">
                                <label class="layui-form-label">片段名称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="title" value="{{ d.data.tip || '' }}"
                                           lay-verify="required"
                                           placeholder="请输入片段名称" autocomplete="off" class="layui-input"
                                           readonly
                                    >
                                </div>
                            </div>

                            <!--  富文本  -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">信息内容</label>
                                <div class="layui-input-inline" style="width: 100%">
                                    <div id="editor"></div>
                                </div>
                            </div>


                            <!--        <input type="hidden" name="content" id="editor-content" value="{{ d.params.content }}">-->
                            <input type="hidden" name="id" value="{{ d.data.id }}">
                            <div class="layui-form-item">
                                <label class="layui-form-label"></label>
                                <div class="layui-input-inline">
                                    <input type="button" lay-submit lay-filter="LAY-home-footer-listform-submit"
                                           value="保存"
                                           class="layui-btn">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>
<script src="res/modules/footerEdit.js"></script>
